<template>
  <div class="admin-dept-page">
    <h2>机构设置</h2>
    <div class="admin-dept-container">
      <div class="dept-section">
       <h2> <router-link to="/adminDept" class="dropdown-item">行政机构</router-link></h2>
      </div>
      <div class="dept-section">
       <h2> <router-link to="/departmental" class="dropdown-item">院系设置</router-link></h2>
      </div>
    </div>
  </div>    
</template>

<style scoped>
.admin-dept-page {
  text-align: center;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-dept-container {
  display: flex;
  gap: 20px;
  width: 100%;
}

.dept-section {
  flex: 1;
  padding: 20px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background-color: #fff;
  min-height: 300px;
}

.dept-section h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 18px;
}

/* 响应式设计，在小屏幕上改为垂直堆叠 */
@media (max-width: 768px) {
  .admin-dept-container {
    flex-direction: column;
  }
}
</style>